package com.laituo.juyou.launcher;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.autoconfigure.data.redis.RedisReactiveAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author xuyang
 */
@EnableEurekaClient
@EnableAsync
@MapperScan("com.laituo.juyou.data")
@SpringBootApplication(scanBasePackages = {"com.juyou","com.laituo.juyou"}, exclude = {RedisAutoConfiguration.class, RedisReactiveAutoConfiguration.class})
@EnableTransactionManagement
public class JuYouLauncherApplication {

	private static final Logger logger = LoggerFactory.getLogger(JuYouLauncherApplication.class);

	public static void main(String[] args) {
		 SpringApplication.run(JuYouLauncherApplication.class, args);
		logger.info("[系统初始化完毕]");
	}

}
